#!/bin/bash

# this is an sample shell script
# you will need to develop this to 
# complete the assignment for week 7

echo "Test Case 1: Testing 23/23..."

tc=`java -jar Grades_v2.jar 23 23`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
fi

echo "Test Case 2: Testing 100/100..."

tc=`java -jar Grades_v2.jar 100 100`

if [ "$tc" = "Fail" ]
  then
  echo "Test failed"
fi

echo "Test Case 3: Testing -10/-5..."

tc=`java -jar Grades_v2.jar -10 -5`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test failed" 
fi

echo "Test Case 4: Testing 50/50..."

tc=`java -jar Grades_v2.jar 50 50`

if [ "$tc" = "Fail" ]
  then
  echo "Test failed"
fi

echo "Test Case 5: Testing 10/10..."

tc=`java -jar Grades_v2.jar 10 10`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test passed"
fi
